package com.zyd.blog.business.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.zyd.blog.persistence.beans.BizArticleFavor;

import java.util.Date;

/**
 * @author yadong.zhang (yadong.zhang0415(a)gmail.com)
 * @website https://www.zhyd.me
 * @version 1.0
 * @date 2018/4/16 16:26
 * @since 1.0
 */
public class ArticleFavor {
    private static final long serialVersionUID = 1L;
    private BizArticleFavor bizArticleFavor;

    private String title;

    private String description;

    private String username;

    private String nickname;

    private String avatar;

    public ArticleFavor() {
        this.bizArticleFavor = new BizArticleFavor();
    }

    public ArticleFavor(BizArticleFavor bizArticleFavor) {
        this.bizArticleFavor = bizArticleFavor;
    }

    @JsonIgnore
    public BizArticleFavor getBizArticleFavor() {
        return this.bizArticleFavor;
    }

    public Long getId() {
        return this.bizArticleFavor.getId();
    }

    public void setId(Long id) {
        this.bizArticleFavor.setId(id);
    }

    public long getArticleId() {
        return this.bizArticleFavor.getArticleId();
    }

    public void setArticleId(long articleId) {
        this.bizArticleFavor.setArticleId(articleId);
    }

    public long getUserId() {
        return this.bizArticleFavor.getUserId();
    }

    public void setUserId(long userId) {
        this.bizArticleFavor.setUserId(userId);
    }

    public String getUserIp() {
        return this.bizArticleFavor.getUserIp();
    }

    public void setUserIp(String userIp) {
        this.bizArticleFavor.setUserIp(userIp);
    }

    public Date getFavorTime() {
        return this.bizArticleFavor.getFavorTime();
    }

    public void setFavorTime(Date favorTime) {
        this.bizArticleFavor.setFavorTime(favorTime);
    }

    public Date getCreateTime() {
        return this.bizArticleFavor.getCreateTime();
    }

    public void setCreateTime(Date createTime) {
        this.bizArticleFavor.setCreateTime(createTime);
    }

    public Date getUpdateTime() {
        return this.bizArticleFavor.getUpdateTime();
    }

    public void setUpdateTime(Date updateTime) {
        this.bizArticleFavor.setUpdateTime(updateTime);
    }

    public String getTitle() {
        return this.bizArticleFavor.getTitle();
    }

    public void setTitle(String title) {
        this.bizArticleFavor.setTitle(title);
    }

    public String getDescription() {
        return this.bizArticleFavor.getDescription();
    }

    public void setDescription(String description) {
        this.bizArticleFavor.setDescription(description);
    }

    public String getUsername() {
        return this.bizArticleFavor.getUsername();
    }

    public void setUsername(String username) {
        this.bizArticleFavor.setUsername(username);
    }

    public String getNickname() {
        return this.bizArticleFavor.getNickname();
    }

    public void setNickname(String nickname) {
        this.bizArticleFavor.setNickname(nickname);
    }

    public String getAvatar() {
        return this.bizArticleFavor.getAvatar();
    }

    public void setAvatar(String avatar) {
        this.bizArticleFavor.setAvatar(avatar);
    }
}

